package com.ht.service.impl;

import com.ht.bean.*;
import com.ht.dao.EnrollmentDao;
import com.ht.service.EnrollmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EnrollmentServiceImpl implements EnrollmentService {
    @Autowired
    private EnrollmentDao is;

    //招生模块
    //查询招生表
    @Override
    public List<Map> etlist(Integer startIndex, Integer pageSize, Enrollment et) {
        return is.etlist(startIndex,pageSize,et);
    }
    //查询总页数
    @Override
    public int countet(Enrollment et) {
        return is.countet(et);
    }

    //查询专业表
    @Override
    public List<Major> allmajor() {
        return is.allmajor();
    }

    //查询专业类别表
    @Override
    public List<Classtype> allclasstype() {
        return is.allclasstype();
    }

    //新增
    @Override
    public boolean etadd(Enrollment enrollment) {
        return is.etadd(enrollment);
    }
    //预定报名费
    @Override
    public boolean ydbmf(Enrollment enrollment) {
        return is.ydbmf(enrollment);
    }

    //预定报名费审核
    @Override
    public boolean ydbmfsh(Enrollment enrollment) {
        return is.ydbmfsh(enrollment);
    }

    //提成金额
    @Override
    public boolean tcje(Enrollment enrollment) {
        return is.tcje(enrollment);
    }

    //试学
    @Override
    public boolean sx(Enrollment enrollment) {
        return is.sx(enrollment);
    }

    //学生状态  未试学/流失
    @Override
    public boolean wsx(Enrollment enrollment) {
        return is.wsx(enrollment);
    }

    //查询id
    @Override
    public Enrollment cxid(Integer enrollmentId) {
        return is.cxid(enrollmentId);
    }

    //删除
    @Override
    public boolean delet(String enrollmentId) {
        return is.delet(enrollmentId);
    }
    //查询要修改的id
    @Override
    public List<Enrollment> selbyid(String enrollmentId) {
        return is.selbyid(enrollmentId);
    }

    @Override
    public boolean updet(Enrollment enrollment) {
        return is.updet(enrollment);
    }



    //---------------------------------------------------------------------
    //文件管理
    //查询
    @Override
    public List<Map> alldc(Integer startIndex, Integer pageSize, Datadoc datadoc) {
        return is.alldc(startIndex,pageSize,datadoc);
    }

    //查询总页数
    @Override
    public int counte(Datadoc datadoc) {
        return is.counte(datadoc);
    }

    //查询员工表
    @Override
    public List<Emp> allemp() {
        return is.allemp();
    }

    //新增
    @Override
    public boolean dcadd(Datadoc datadoc) {
        return is.dcadd(datadoc);
    }

    //删除
    @Override
    public boolean dcdel(String docId) {
        return is.dcdel(docId);
    }
    //------------------------------------------------------------------------------------------------------------
    //员工表
    @Override
    public Datadoc XzDatadoc(String docId) {
        return is.XzDatadoc(docId);
    }

    //系统报表模块

    //查询招生列表
    @Override
    public List<Map> bblist(Integer startIndex, Integer pageSize, Enrollment et) {
        return is.bblist(startIndex,pageSize,et);
    }
    //查询总页数
    @Override
    public int countb(Enrollment et) {
        return is.countb(et);
    }

    //查询招生列表 整图形
    @Override
    public List<Map> txlist() {
        return is.txlist();
    }

    //预定报名费统计
    @Override
    public List<Map> fylist(Integer startIndex, Integer pageSize, Enrollment et) {
        return is.fylist(startIndex,pageSize,et);
    }
    //查询总页数
    @Override
    public int countf(Enrollment et) {
        return is.countf(et);
    }


}
